<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>检查Set中存在某个value编写对应函数</title>
</head>
<body>
<script>
    var num=[1,2,3,1,4,5]
    var obj=new Set(num)//判断是否有指定元素
    console.log(obj.has(1))
</script>
</body>
</html>